<template>
  <div class="menu-home" @tap="goHome">
    <i class="if icon-home"></i>
  </div>
</template>

<script>
export default {
  props: {
  },
  methods: {
    goHome () {
      wx.reLaunch({
        url: '/pages/index/main'
      })
    }
  }
}
</script>

<style scoped lang="less">
@import '../assets/less/var.less';

.menu-home {
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  text-align: center;
  line-height: 46px;
  background: linear-gradient(to right, @colorTeal , @colorBlue);
  bottom: 80px;
  right: 15px;
  z-index: 100;
  color: white;
  box-shadow: 0 0 8px rgba(0,0,0,.2);
  &:active {
    background: linear-gradient(to right, darken(@colorTeal, 10%) , darken(@colorBlue, 10%));
  }
  i {
    font-size: 2 * @baseSize;
    line-height: 46px;
    font-weight: bold;
  }
}
</style>
